package com.module.admin.rest.service;

import java.util.Date;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.module.admin.rest.pojo.RestLog;
import com.system.handler.model.ResponseFrame;

/**
 * rest_log的Service
 * @author yuejing
 * @date 2016-12-23 16:43:04
 * @version V1.0.0
 */
@Component
public interface RestLogService {
	
	/**
	 * 保存
	 * @param serverAddress
	 * @param url
	 * @param params
	 * @return
	 */
	public ResponseFrame save(String serverAddress, Date requestTime, String url, Map<String, String> params);
	
	/**
	 * 根据rlId获取对象
	 * @param rlId
	 * @return
	 */
	public RestLog get(String rlId);

	/**
	 * 分页获取对象
	 * @param restLog
	 * @return
	 */
	public ResponseFrame pageQuery(RestLog restLog);
	
	/**
	 * 根据rlId删除对象
	 * @param rlId
	 * @return
	 */
	public ResponseFrame delete(String rlId);

}
